<?php
$this->pageTitle   = Yii::app()->name . ' - Error';
$this->breadcrumbs = array(
    'Error',
);
?>
<!--Default table styles 2 Start-->
<div class="grid">
    <div class="grid-title">
        <div class="pull-left"><?php echo Yii::t('error', 'Error') . " $code"; ?></div>
        <div class="pull-right">
            <a  class="btn btn-info"
                href="<?php echo Yii::app()->createUrl($this->module->id . '/default/index', array('lang' => Yii::app()->language)); ?>">
                    <?php echo Yii::t('opdadmin', 'Dashboard') ?>
            </a>
        </div>
        <div class="clear"></div>
    </div>
    <div class="grid-content">
        <h1><?php echo Yii::t('error', 'Error') . " $code"; ?></h1>
        <p class="p-important"><?php echo CHtml::encode($message); ?></p>        
        <?php if (Option::getItem('backend_debug') == 1): ?>
            <pre class="prettyprint">
                <?php echo Yii::t('error', 'File') ?>: <?php echo CHtml::encode($file); ?>

                <?php echo Yii::t('error', 'Line') ?>: <?php echo $line; ?>
            </pre>
            <h3><?php echo Yii::t('error', 'Trace') ?></h3>
            <pre class="prettyprint">
                <?php echo CHtml::encode($trace); ?>
            </pre>       
        <?php endif; ?>
    </div>
</div>
